/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.rainbowsheep.reisorg.rest.service.service;

import java.util.List;
import nl.rainbowsheep.reisorg.rest.service.model.AccommodationHousing;
import nl.rainbowsheep.reisorg.rest.service.repository.AccommodationHousingRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccommodationHousingService {
    
    @Autowired
    private AccommodationHousingRepository housingRepo;
    
    public List<AccommodationHousing> getByAccommodationId(long accommodationId) {
        return housingRepo.findByAccommodationId(accommodationId);
    }
}
